package com.indusfo.spc.client.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.indusfo.spc.pojo.BatchFlowFinish;

/**
 * @author chenm
 * @create 2019-12-20 16:55
 */
public interface ClientBatchFlowFinishMapper {

  int insertBatchFlowFinish(BatchFlowFinish batchFlowFinish);

  Integer selectLastSerialNumByBatchId(@Param("batchId") Integer batchId);

  BatchFlowFinish selectByBatchIdAndSerialNum(@Param("batchId") Integer batchId, @Param("serialNum") Integer serialNum);

  int updateBatchFlowFinish(BatchFlowFinish batchFlowFinish);
  
  BatchFlowFinish selectByRepairPro(@Param("serialNum") Integer serialNum,@Param("batchId")Integer batchId);

  int insertBatchFlowFinishList(@Param("batchFlowFinishList") List<BatchFlowFinish> batchFlowFinishList);

  BatchFlowFinish selectbyBatchFlowFinishId(@Param("batchFlowFinishId") Integer batchFlowFinishId);

  int updateBatchFlowFinishList(@Param("updateBatchFlowFinishList") List<BatchFlowFinish> updateBatchFlowFinishList);

}
